<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>详情</h1>
<table border="1">
    <h2 th:if="${book==null}">没有数据</h2>
    <tr th:if="${book!=null}">
        <td th:text="${book.id}">图书编号</td>
        <td th:text="${book.name}">图书名称</td>
        <td th:text="${book.author}">图书作者</td>
        <td th:text="${book.date}">图书日期</td>
    </tr>
</table>
</body>
</html>